package com.zh.javaguide.multithread;


public class SynchronizedDemo {
	public void method(){
		synchronized (this){
			System.out.println("synchronized代码块");
		}
	}
	public synchronized void method2(){
			System.out.println("synchronized方法");
	}
}
